<%@ page pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<style type="text/css">
<!--

-->
</style>

<script type="text/javascript">
	function gotoWhere(){
		$("#totalPageForm").submit();
	}
</script>

<table border="0" cellpadding="0" cellspacing="0" style="margin-left:20px;margin-bottom:5px">
  <tr>
	<td width="6%">共${pager.totalPages}页</td>
    <td width="12%">共${pager.totalCounts}条记录</td>
    <td width="7%">
		<s:if test="pager.hasPre"><a href="${fname}?offset=${pager.firstNo}">第一页</a></s:if>
		<s:else>第一页</s:else>
	</td>
    <td width="7%">
		<s:if test="pager.hasPre"><a href="${fname}?offset=${pager.preNo}">上一页</a></s:if>
		<s:else>上一页</s:else>
	</td>
    <td width="7%">
		<s:if test="pager.hasNext"><a href="${fname}?offset=${pager.nextNo}">下一页</a></s:if>
		<s:else>下一页</s:else>
	</td>
    <td width="10%">
		<s:if test="pager.hasNext"><a href="${fname}?offset=${pager.lastNo}">最后一页</a></s:if>
		<s:else>最后一页</s:else></td>
    <td width="13%">
		<form action="${fname}" method="get" id="totalPageForm">
		转第
		<select name="pageNo" onchange="gotoWhere()">
			<c:forEach begin="1" end="${pager.totalPages}" varStatus="stat">
				<option value="${stat.index}"<c:if test="${stat.index == sessionScope.pageNo}"> selected="selected"</c:if>>${stat.index}</option>
			</c:forEach>
		</select> 页
		</form>
	</td>
    <td></td>
  </tr>
</table>
